﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MuzoBlog.Core.BussinessLogic.Blog.Entities
{
    public class Post
    {
        public Guid PostID { get; set; }

        public Guid ParentPostID { get; set; }

        public string Title { get; set; }

        public string Summary { get; set; }

        public string Content { get; set; }

        public string Slug { get; set; }

        public string Password { get; set; }

        public PostStatus Status { get; set; }

        public PostType Type { get; set; }

        public DateTime PostDate { get; set; }

        public DateTime PostDateGMT { get; set; }

        public DateTime PostModified { get; set; }

        public DateTime PostModifiedGMT { get; set; }
    }

    [Flags]
    public enum PostStatus : byte
    {
        Published = 0,
        UnPublished = 1,
        Deleted = 2,
        WaitingPostDateForPublishing = 3
    }

    [Flags]
    public enum PostType : byte
    {
        Post = 0,
        Page = 1,
        OnlyContent = 2
    }
}